package cn.hniu.service;

import cn.hniu.pojo.TextPosts;
import cn.hniu.pojo.VideotPosts;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface VideotPostsService {
    //查询帖子
    public List<VideotPosts> findVideotPosts(String data, Integer begin, Integer size);//data搜索数据，begin当前页，size一页几条
    //修改帖子
    public Integer updateVideotPosts(VideotPosts videotPosts);
    //删除帖子
    public Integer deleteVideotPosts(Integer id);
    //查询帖子浏览量 后端 查询 帖子表 以热度排序为前十的记录
    public List<VideotPosts> findVideotPostsBytHot();
}
